package com.KKd.demo04;

import com.KKd.demo02.UserService;
import com.KKd.demo02.UserServiceImpl;

/**
 * @author 14587
 * @date 2020/11/3 1:06
 */
public class Client {
    public static void main(String[] args) {
        //真实角色
        UserServiceImpl userService = new UserServiceImpl();
        //代理角色：还没有
        ProxyInvocationHandler pIHandler = new ProxyInvocationHandler();
        pIHandler.setTarget(userService);
        UserService proxy = (UserService) pIHandler.getProxy();
        proxy.add();
    }
}
